package utils;

import java.util.Properties;

import org.apache.log4j.Logger;
/**
 * 读取配置文件
 *
 */
public class ConfigInfo {
	static Logger  log = Logger.getLogger(ConfigInfo.class);
	private static Properties cache = new Properties();
	static{
		try {
			cache.load(ConfigInfo.class.getClassLoader().getResourceAsStream("utilsInfo.properties"));
		} catch (Exception e) {
			log.warn(e);
		}
	}
	/**
	 * 获取指定key的值
	 * @param key 配置文件中的key值
	 * @return value
	 */
	public static String getValue(String key){
		return cache.getProperty(key);
	}
	
	public static String getSysIP(){
		
		return "";
	}
}
